//vite.config.ts
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import TransformPages from 'uni-read-pages-vite'

export default defineConfig({
	plugins: [uni()],
	define: {
		ROUTES: new TransformPages(__dirname).routes, // 注入路由表
	}
});